#ifndef CMODEL_H
#define CMODEL_H

#include <QSqlQueryModel>
namespace cooking {

class CEngine;

class CModel : public QSqlQueryModel
{
    Q_OBJECT
public:
    explicit CModel(CEngine& engine, QObject *parent = 0);

protected:
    virtual QString queryString() = 0;
    virtual void refresh() = 0;
    virtual void initRoles() = 0;

signals:

public slots:

private:
    CEngine &m_engine;
};
} // namespace cooking
#endif // CMODEL_H
